import {request} from "/@/utils/service";
import * as url from "node:url";

// 获取活跃智能体数量
export function getActiveIntelliNum() {
    return request({
        url: '/api/spider/journal',
        method: 'get'
    });
}

// 获取历史统计信息
export function getHistoryStatics() {
    return request({
        url: '/api/spider/info/history',
        method: 'get',
    })
}

// 获取任务环比数据
export function getTaskRatio() {
    return request({
        url: '/api/journal/info/journalTaskRatio',
        method: 'get',
    })
}

//获取近五年总爬取数据量
export function getVolumeView() {
    return request({
        url: '/api/journal/info/DataVolumeView',
        method: 'get',
    })
}

export function getinstitutionArticleNum(id: BigInt) {
    return request({
        url: '/api/journal/info/institutionArticleNum',
        method: 'post',  // 改为 POST 请求
        data: {
            id: id,
        }
    });
}